package com.bw.itext.pdf;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "pdf")
public class PdfProperties {
    /**
     * 是否开启Pdf功能
     */
    private boolean enable = false;
    /**
     * pdf保存路径,要以“/”结尾
     */
    private String path;

    /**
     * 文件访问前缀  http://ip:port/
     */
    private String domain;
    /**
     * pdf证书位置
     */
    private String pdfKs;
    /**
     * pdf证书密码
     */
    private String pdfKsPass;

    /**
     * 签名图片位置
     */
    private String signPicName;

    private int x;

    private int y;

    private int width;

    private int height;

    private String font;
}
